OPERATION FLASHPOINT
Dedicated Server

This document describes all steps needed to configure a remote dedicated server for an 
Operation Flashpoint multiplayer game.

1	Additional Command Line Parameters

-host ... creates standard game host.

-connect=<ip address> ... creates a client and connects to server at the given ip 
address.

-server ... creates dedicated server. 
 
-config=<config file> ... links to an additional configuration file for the dedicated 
server (more info later).

-port=<port number> ... additional parameter  for all modes, assigning a 
communications port. If there are several dedicated servers on one computer, they 
should use different ports - the recommended range is 2300  2400, but not every 
port will work.

-password=<password> ... additional parameter for modes "-host" and "-connect" 
to set a password (for mode "-server", it's in the config file).

-name=<user name> ... additional parameter for mode "-connect", identifying the 
name of the user being connected.



2	Configuration File for the Dedicated Server

This file is located in the main application path (the same as OperationFlashpoint.exe). 
It's identified in the game command line (e.g. OperationFlashpoint server 
config=test.cfg).

Structure of the configuration file (test.cfg):

password = pwd";	// password for the session everyone who wants to join the game 
needs this to connect to the game
passwordAdmin = pwdgamemaster"; // password for the server admin

class Missions // list of missions that will be played in cyclic order
{
	class Mission01 // any mission name here
	{
		template = 1-8_D_FLAGFIGHT.ABEL; // directory or file name of the 
mission (without extension pbo)  the mission must be located in directory MPMissions
		cadetMode = 0; // 0 = difficulty veteran, 1 difficulty cadet
		param1 = 1800; // sets a mission-specific parameter  for example, time 
limit; see the description.ext for the relevant mission
		param2 = 50; // sets another mission-specific parameter
	};
	// descriptions of more missions may follow
};



3	Remote Server Controls

It's possible to control the server from any connected client using series of commands 
written to the chat line.

List of remote commands:

#login "gamemasterpwd". Admin login. Only one admin can be connected at once.
 
#logout  logout as admin.

#kick "user"  kick player.

#restart  restart current mission.

#mission  switch to next mission in the config file.

#missions  select a new mission from the list of available missions. 
